package org.example.springcloud_feign_consumer.fallback;

import org.example.pojo.User;
import org.example.springcloud_feign_consumer.feign.Userfeign;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author shkstart
 * @create 2021-03-11 18:58
 */
@Component
@RequestMapping("u")
public class UserServiceFallback implements Userfeign {

    public User getUser(Integer id) {
        return new User(1,"我是托底数据Fallback",0);
    }
}
